package com.aispeech.asr.apis.ssc.enums;

public enum ErrorDescEnum {

    //兼容casr和lasr的值
	asr_min_data(0, "中间结果（识别+声纹）"),
	asr_last_data(1, "asr最后一个识别结果"),
	asr_vpr(2, "最终识别+声纹的结果，可能没有声纹"),
	start(7, "feeding"), //响应成功
	lasr_mid_data(8, "lasr的中间结果"),
	lasr_last_data(9, "lasr的最后一个结果"),
	data_error(10, "客户端发送的数据错误"),
	system_error(11, "服务异常"),
	
	session_close(99,"can be close"),
	
	//系统模块
    ERROR(103, "System error."),
    ERROR_404(404, "The requested resource does not exist"),
    ERROR_400(400, "Invalid request."),
    ERROR_403(403, "Invalid token, ForbiddenNot. "),
    ERROR_401(401, "Permission denied."),

    ERROR_11000(11000, "Request parameters missing"),
    ERROR_11001(11001, "Invalid parameter"),

    ERROR_21000(21000, "This client already started."),
    ERROR_21001(21001, "Invalid payloadAsText"),
    ERROR_21002(21002, "Audio parameters missing"),
    ERROR_21003(21003, "This client status is error."),
    ERROR_21004(21004, "Not found vad resource"),
    ERROR_21005(21005, "Start op failed"),
    
    ERROR_31000(31000, "识别服务初始化失败"),
    ERROR_31001(31001, "识别服务运行失败"),
    
    ERROR_41000(41000, "声纹服务初始化失败"),
    ERROR_41001(41001, "声纹服务运行失败"),
    
    

    
    ;


    private int code;
    private String message;

    ErrorDescEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
